package com.ayit.car.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ayit.car.pojo.VehicleExteriorColors;
import com.ayit.car.service.VehicleExteriorColorsService;
import com.ayit.car.mapper.VehicleExteriorColorsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 为王下葬
* @description 针对表【vehicle_exterior_colors(车辆车身颜色关联表)】的数据库操作Service实现
* @createDate 2024-06-24 19:15:30
*/
@Service
public class VehicleExteriorColorsServiceImpl extends ServiceImpl<VehicleExteriorColorsMapper, VehicleExteriorColors>
    implements VehicleExteriorColorsService{

    @Autowired
    private VehicleExteriorColorsMapper vehicleExteriorColorsMapper;

    @Override
    public void deleteByCarId(List<Long> ids) {
        for (Long id : ids){
            vehicleExteriorColorsMapper.deleteByCarId(id);
        }
    }
}




